package studyandroid.android.study.gophern.studyandroid.ui.titlebar;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.LinearLayout;

import studyandroid.android.study.gophern.studyandroid.MainActivity;
import studyandroid.android.study.gophern.studyandroid.R;

public class StudyTitleBarActivity extends AppCompatActivity implements View.OnClickListener {
	boolean True = true;
	boolean False = false;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_study_title_bar);

		initView();
	}

	private void initView() {
		((LinearLayout) findViewById(R.id.mnIncTitleBar)).setOnClickListener(this);
		((LinearLayout) findViewById(R.id.mnInc2TitleBar)).setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		int id = v.getId();
		switch (id) {
			case R.id.mnIncTitleBar:
				startActivity(new Intent(StudyTitleBarActivity.this, IncTitleBarActivity.class));
				break;
			case R.id.mnInc2TitleBar:
				startActivity(new Intent(StudyTitleBarActivity.this, Inc2TitleBarActivity.class));
				break;
		}
	}

}
